package com.example.aircraftwar.aircraft;

import com.example.aircraftwar.bullet.AbstractBullet;
import com.example.aircraftwar.strategyshoot.ContextShoot;
import com.example.aircraftwar.strategyshoot.SpreadShoot;

import java.util.List;

public class BossEnemy extends AbstractEnemy{

    public BossEnemy(int locationX, int locationY, int speedX, int speedY, int hp,int shootNum,int power,int direction) {
        super(locationX, locationY, speedX, speedY, hp,shootNum,power,direction);
        this.contextShoot = new ContextShoot(new SpreadShoot());
    }

    @Override
    public List<AbstractBullet> shoot() {
        return contextShoot.shoot(this,power,direction,shootNum);
    }

}
